﻿
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;


namespace CUWo.Common.Entities.WoInterface.HttpJsonResult
{



    [DataContract]
    public class NewsContentPicInf
    {

        [DataMember(Name = "MD5")]
        public string MD5 { get; set; }

        [DataMember(Name = "height")]
        public int Height { get; set; }

        [DataMember(Name = "path")]
        public string Path { get; set; }

        [DataMember(Name = "width")]
        public int Width { get; set; }
    }

    [DataContract]
    public class NewsInf
    {

        [DataMember(Name = "grbSrc")]
        public string GrbSrc { get; set; }

        [DataMember(Name = "grbSrcID")]
        public string GrbSrcID { get; set; }

        [DataMember(Name = "lnk")]
        public string Lnk { get; set; }

        [DataMember(Name = "nwsID")]
        public int NwsID { get; set; }

        [DataMember(Name = "nwsSrc")]
        public string NwsSrc { get; set; }

        [DataMember(Name = "picInf")]
        //public IList<NewsContentPicInf> PicInf { get; set; }
        public ObservableCollection<NewsContentPicInf> PicInf { get; set; }

        [DataMember(Name = "trcPblDtTm")]
        public string TrcPblDtTm { get; set; }

        [DataMember(Name = "ttl")]
        public string Ttl { get; set; }
    }

    [DataContract]
    public class JsonResultMessageNewsContent
    {

        [DataMember(Name = "msg")]
        public JsonResultMessage Msg { get; set; }

        [DataMember(Name = "newsInf")]
        public IList<NewsInf> NewsInf { get; set; }
    }

}
